<?php
/**
 * Created by PhpStorm.
 * @author WYZ <wyz@jungo.com.cn>
 * @copyright 深圳市俊网网络有限公司
 */

namespace Selibra\Command;


class CommandCollector
{

    /**
     * @var array
     */
    protected static array $commands;

    /**
     * @param $command
     * @param $class
     */
    public static function register($command, $class)
    {
        self::$commands[$command] = $class;
    }



    public static function getCommandClass(string $command)
    {
        return self::$commands[$command];
    }

}
